package cn.community.system.query;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter
@Getter
public class MemberReportQuery extends QueryObject{
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;//开始时间

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;//结束时间

    private String groupType = "DATE_FORMAT(createTime, '%Y-%m')"; // 默认是月份

    private Long userId;
}
